from rest_framework.viewsets import ModelViewSet

from apps.goods.models import SPUSpecification
from apps.meiduo_admin.serializers.spec import SpecSerializer
from apps.meiduo_admin.utils import PageNum


class SpecView(ModelViewSet):
    """
    规格表的管理
    """

    serializer_class = SpecSerializer
    queryset = SPUSpecification.objects.all()
    pagination_class = PageNum

